<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>

<head>
<c:if test="${sessionScope.loginMember != null }">
	<jsp:forward page="home.sds"></jsp:forward>
</c:if>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>StepUp-Login</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div align="center" style="padding-top: 30px;">
        	<div>
			    <h1 class="logo-name"></h1>
            </div>
            <h3><a href="stepup_index.sds"><img alt="image" class="img-responsive" src="img/logo.jpg"
					 style="Height: 80px; width: 80px;" ></a></h3>
            <p>신한데이타시스템 직원들의 건강증진을 위해 개발하였습니다. 로그인을 하시면 다양한 정보를 얻으실 수 있습니다.
                <!--Continually expanded and constantly improved Inspinia Admin Them (IN+)-->
            </p>
            <p>Login in. To see it in action.</p>
            <form class="m-t" role="form" action="login.sds" method="post">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="ID" name="mid" required="">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" placeholder="Password" name="mpassword" required="">
                </div>
                <button type="submit" class="btn btn-primary block full-width m-b">Login</button>

                <!-- <a href="#"><small>Forgot password?</small></a> -->
                <p class="text-muted text-center"><small>Do not have an account?</small></p>
                <a class="btn btn-sm btn-white btn-block" href="registerPage.sds"  style="background-color:silver;">Create an account</a>
				
            </form>
            <p class="m-t"> <small>StepUp System. Copyright <strong> &copy; SHINHAN DATA SYSTEM.</strong><br>All Right Reserved. 2015</small></p>
        </div>
    </div>
    
    <input type="hidden" id="msg" value="${requestScope.loginFailMsg}">
    
    <!-- Mainly scripts -->
    <script src="js/jquery-2.1.1.js"></script>
    <script src="js/bootstrap.min.js"></script>
   	<script type="text/javascript">
    	$(document).ready(function(){
    		var msg = $("#msg").val();
    		if(msg != ""){
	    		alert(msg);
    		}
    	});
    </script>

</body>

</html>
